ISCModelDirectoryUnit

The Model Directory Unit encapsulates information on a single directory unit. A file system file and a model in a mart are examples of the Model Directory Unit.

The following table contains the methods for the ISCModelDirectoryUnit interface:

Method

Description

SC_ModelDirectoryFlags Flags()

Model directory unit flags. A 32-bit property flag word.

VARIANT_BOOL IsOfType( ISCModelDirectory * Directory)

Returns TRUE if directory has the same type of connection as self.

For example, directory entries from the same mart and with the same login attributes, such as user, password, and so on, are considered of the same type.

BSTR Locator()

Location of the directory unit including the absolute path and parameters. Does not include password information.

BSTR Name()

Model directory unit name. For example, the file system file name without path information.

ISCPropertyBag* PropertyBag( VARIANT List [optional], VARIANT AsString [optional])

Returns a pointer on a property bag with the directory unit properties.

A directory unit property is present in the resulting bag only if it has a value. If the property does not have any value set, the property bag will not have the property listed.

void PropertyBag( VARIANT List [optional], VARIANT AsString [optional], ISCPropertyBag* Property Bag)

Accepts a pointer on a property bag with the directory unit properties.

SC_ModelDirectoryType Type()

Type of a directory.

More information about Model Directory flags is located in the Enumerations section.